package net.lahuobao.mall.dao.admin;

import net.lahuobao.mall.entity.admin.MallShopCardrule;
import net.lahuobao.mall.entity.admin.MallShopCardruleExample;
import net.lahuobao.mall.entity.admin.MallShopCardruleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MallShopCardruleMapper {
    int countByExample(MallShopCardruleExample example);

    int deleteByExample(MallShopCardruleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MallShopCardrule record);

    int insertSelective(MallShopCardrule record);

    List<MallShopCardrule> selectByExample(MallShopCardruleExample example);

    MallShopCardrule selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MallShopCardrule record, @Param("example") MallShopCardruleExample example);

    int updateByExample(@Param("record") MallShopCardrule record, @Param("example") MallShopCardruleExample example);

    int updateByPrimaryKeySelective(MallShopCardrule record);

    int updateByPrimaryKey(MallShopCardrule record);

    List<MallShopCardruleQuery> selectMallShopCardRule(Map map);

    int selectMallShopCardRuleCount(Map map);
    List<MallShopCardruleQuery> getMallShopCardInfo(String cardNo);
    MallShopCardrule getMallShopCardrule(String cardNo);
}